package com.kvest.scanrecognizer.network.response;

/**
 * Created with IntelliJ IDEA.
 * User: Kvest
 * Date: 03.09.13
 * Time: 23:00
 * To change this template use File | Settings | File Templates.
 */
public class RecognizeResponse extends BasicResponse {
    public static final int CODE_OK = 0;
    public static final int CODE_FILE_CONVERT_ERROR = 1;
    public static final int CODE_LIMIT_REACHED = 2;
    public static final int CODE_NETWORK_ERROR = 100;
    public static final int CODE_RESPONSE_PARSE_ERROR = 101;

    private int code;
    private String uid;

    public RecognizeResponse(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    @Override
    public String toString() {
        return "code=" + code + ", uid=" + uid;
    }
}
